/*******************************************************************************
 * Copyright (c) 2015, Institute for Pervasive Computing, ETH Zurich.
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the Institute nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * 
 * This file is part of the OMA LWM2M DevKit.
 ******************************************************************************/
 
toolbar {
	margin-bottom: 5px;
	border-bottom: 1px solid ThreeDShadow;
	-moz-appearance: none;
}

panel.interface {
 	margin-top: 10px;
	padding: 10px;
	border: 2px solid ThreeDShadow;
	border-top: 0px;
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
    background: rgb(232,232,232);
}

panel.full {
 	margin-top: 5px;
	padding: 10px;
	border-top: 2px solid ThreeDShadow;
	border-radius: 5px;
}


panel.tooltip {
	
}

separator {
	height: 5px;
}

.special-button {
   -moz-appearance: none;
   font-weight: bold;
   padding: 5px;
   color: white;
   border: 2px solid rgb(66, 184, 221);
   border-radius: 5px;
   background: rgb(66, 184, 221);
   cursor: pointer;
}

.special-button:hover {
   background: rgb(0, 0, 0);
   border: 2px solid white;
}

.special-button[disabled] {
   background: gray;
   border: none;
   padding: 7px;
   color: lightgray;
   cursor: default;
}

#interface_buttons .special-button {
	margin: 10px;
}

textbox.resvalue {
   -moz-appearance: none;
	border: 1px solid rgb(66, 184, 221);
	background-color: rgb(200, 235, 245);
}

#tooltiptext div {
	text-align: center;
	margin: 5px;
	white-space: pre-wrap;
	cursor: inherit;
}

tt {
	color: black;
	font-weight: bold;
	background-color: silver;
	padding: 0px 3px 0px 3px;
	border: 1px solid darkgray;
	border-radius: 5px;
	
}

listcell label {
	white-space: pre-wrap;
}

/* removes lines next to checkboxes (border of empty labels) */
checkbox:focus:not([label]) .checkbox-label-box {
	-moz-appearance: none;
	border: none;
}

/* resource icons */
treechildren {
    
}
treechildren::-moz-tree-image(client) {
	list-style-image: url('chrome://lwm2m-devkit/skin/resource_client.png');
}
treechildren::-moz-tree-image(objects) {
	list-style-image: url('chrome://lwm2m-devkit/skin/resource_circle.png');
}
treechildren::-moz-tree-image(instances) {
	list-style-image: url('chrome://lwm2m-devkit/skin/resource_instance.png');
}

/* special resource icons */

treechildren::-moz-tree-image(link) {
  list-style-image: url("chrome://copper/skin/resource_link.png");
}
treechildren::-moz-tree-image(wellknown) {
  list-style-image: url("chrome://copper/skin/resource_world.png");
}
treechildren::-moz-tree-image(discovery) {
  list-style-image: url("chrome://copper/skin/resource_discovery.png");
}
treechildren::-moz-tree-image(observable) {
  list-style-image: url("chrome://copper/skin/resource_observable.png");
}

/* resource node appearance */
treechildren::-moz-tree-row() {
	height: 24px;
}
treechildren::-moz-tree-cell() {
	cursor: pointer;
}
treechildren::-moz-tree-image() {
	cursor: pointer;
  margin: 0px 4px 0px 2px;
  width: 16px;
}
treechildren::-moz-tree-cell-text(hover) {
	cursor: pointer;
	text-decoration: underline;
}

treechildren::-moz-tree-indentation() {
	width: 20px;
}

/* highlight current resource */
treechildren::-moz-tree-cell(active) {
	background-color: #99CCFF;
}
treechildren::-moz-tree-cell-text(active) {
	font-weight: bold;
	color: black;
}
treechildren::-moz-tree-cell-text(cached) {
	color: red;
}
treechildren::-moz-tree-cell-text(cached active) {
	color: darkred;
}